<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../common/jspcommon.jsp"%>
<%@ include file="../common/css.jsp"%>
<style type="text/css">
	#copyButton{vertical-align:-8px;}
</style>
	<!-- body--end-->
	<div class="tc_box release_box share_link_box" id="tc_box">
		<div class="release_title">
			<a href="javascript:void(0);" class="tc_close close_btn">关闭</a>
			<p>推荐商品链接给好友</p>
		</div>
		<div class="content clearfix">
			<div class="rel_box2">
				<div class="share_link_pro">
					<h3>商品图片</h3>
					<a class="link_pic"><img
						src="${product.imageServer }${product.picThumb }_200x200.jpg"
						width="186" height="186" />
					</a>
					<p class="title">
						<a>${product.name }</a>
					</p>
				</div>
			</div>
			<div class="rel_box1">
				<div class="link_ope_box">
					<h3 class="title">
						别人通过此链接实现购买您将获得 <span>￥<fmt:formatNumber value="${product.commission}" maxFractionDigits="0"/>元</span>
					</h3>
					<div class="get_link">
						<input type="text" class="focus g_l_text" disabled="disabled" id="commend_link_value" value="${product.linkUrl }" />
						<span id="copyButton"></span>
					</div>
					<div class="ope_step">
                    	<p><i>1</i>点击复制按钮，复制该<span class="clrpink">商品链接。</span></p>
                        <p><i>2</i>粘贴<span class="clrpink">商品链接</span>到微博、QQ、论坛、SNS社区等消息发布区域。</p>
                        <p><i>3</i>好友通过此<span class="clrpink">商品链接</span>成功实现购买，15日内现金将充值到您的账户。</span></p>
                        <div class=" share_sorts">分享到：<a href="javascript:void(0);" onclick="shareWeibo('01','${product.name }','${product.imageServer }${product.picThumb }_200x200.jpg','${product.linkUrl }')"><img src="../../images/v4/other/icon_xl.gif" />新浪微博</a><a href="javascript:void(0);" onclick="shareWeibo('03','${product.name }','${product.imageServer }${product.picThumb }_200x200.jpg','${product.linkUrl }')"><img src="../../images/v4/other/icon_tt.gif" />腾讯微博</a></div>
                        <span class="clrred tip">*注:返利链接只能通过此处获得，复制其他链接无效</span>
                    </div>
				</div>
			</div>

		</div>
	</div>

	<div class="zz_box"></div>
<script type="text/javascript">

	$(function(){
		$.fn.popDiv({
			tcID:"tc_box",opacity:0.4,isZZ:true,speed:0,noResize:true
		});
		
	});
	
	var commendLink = $("#commend_link_value").val();
	var flashvars = {
		content: encodeURIComponent(commendLink),
		uri: '/js/copy/copy.png'
	};
	var params = {
		wmode: "transparent",
		allowScriptAccess: "always"
	};
	swfobject.embedSWF("/js/copy/copy.swf", "copyButton", "107", "28", "9.0.0", null, flashvars, params);
	//flash回调
	function copySuccess(){
		alert("亲，复制成功，您可以马上去分享了！");
	}
	
</script>
